<template>
	<view class="content">
		<u-sticky>
			<view class="ui_head">
				<view class="ui_head_search">
					<u--input shape="circle" placeholder="搜索订单" prefixIcon="search"
						prefixIconStyle="font-size: 22px;color: #909399"></u--input>
				</view>
				<view class="ui_head_tabs">
					<u-tabs :list="tabs" @click="click" lineWidth="20" lineColor="#9F6F26" :scrollable="false"></u-tabs>
				</view>
			</view>
		</u-sticky>
		
		
		<view class="item">
			<view class="item_head">
				<view class="item_head_left">订单编号：D02025052605680</view>
				<view class="item_head_right">待结算</view>
			</view>
			<view class="item_content">
				<image class="item_content_img" src="https://img0.baidu.com/it/u=2748363669,2526559495&fm=253&fmt=auto&app=120&f=JPEG?w=760&h=760"></image>
				<view class="item_content_text">鳗漫养manmanyang 鳗鱼肽赋活水</view>
				<view class="item_content_money">+228.00</view>
				<u-icon name="arrow-right" size="15" color="#B5B5B5"></u-icon>
			</view>
		</view>
		
		<view class="item" v-for="(item,index) in 4" :key="index">
			<view class="item_head">
				<view class="item_head_left">订单编号：D02025052605680</view>
				<view class="item_head_right">待结算</view>
			</view>
			<view class="item_content">
				<image class="item_content_img" src="https://img0.baidu.com/it/u=2748363669,2526559495&fm=253&fmt=auto&app=120&f=JPEG?w=760&h=760"></image>
				<image class="item_content_img" src="https://img0.baidu.com/it/u=2748363669,2526559495&fm=253&fmt=auto&app=120&f=JPEG?w=760&h=760"></image>
				<view class="item_content_text">共2件</view>
				<view class="item_content_money">+228.00</view>
				<u-icon name="arrow-right" size="15" color="#B5B5B5"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabs: [{
					name: '待结算',
					badge: {
						value: 5,
					}
				}, {
					name: '已结算',
				}]
			}
		},
		methods: {
			click(item) {
				console.log('item', item);
			},

		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		
		.item {
			margin-top: 20rpx;
			width: 714rpx;
			height: 180rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
			display: flex;
			flex-direction: column;
			&_head {
				width: 654rpx;
				margin-left: 30rpx;
				margin-top: 20rpx;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #9F6F26;
				display: flex;
				&_left {
					flex: 1;
					color: #999;
				}
			}
			&_content {
				display: flex;
				height: 130rpx;
				align-items: center;
				margin-left: 15rpx;
				padding-right: 10rpx;
				&_img {
					margin-left: 10rpx;
					width: 80rpx;
					height: 80rpx;
					background: #F4F4F4;
					border-radius: 10rpx;
				}
				&_text {
					margin-left: 20rpx;
					width: 360rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 26rpx;
					color: #333333;
					line-height: 36rpx;
				}
				&_money {
					flex: 1;
					line-height: 40rpx;
					text-align: end;
					font-family: D-DIN Condensed;
					font-weight: bold;
					font-size: 36rpx;
					color: #333333;
					margin-right: 10rpx;
				}
			}
		}

		.ui_head {
			width: 750rpx;
			display: flex;
			flex-direction: column;
			background-color: white;

			&_search {
				width: 710rpx;
				margin-left: 20rpx;
			}

			&_tabs {
				width: 750rpx;
			}
		}
	}
</style>